import request from '@/utils/request'

// 查询抽取条件列表
export function listCondition(query) {
  return request({
    url: '/purs/condition/list',
    method: 'get',
    params: query
  })
}

// 查询抽取条件详细
export function getCondition(conditionId) {
  return request({
    url: '/purs/condition/' + conditionId,
    method: 'get'
  })
}

// 新增抽取条件
export function addCondition(data) {
  return request({
    url: '/purs/condition',
    method: 'post',
    data: data
  })
}

// 修改抽取条件
export function updateCondition(data) {
  return request({
    url: '/purs/condition',
    method: 'put',
    data: data
  })
}

// 删除抽取条件
export function delCondition(conditionId) {
  return request({
    url: '/purs/condition/' + conditionId,
    method: 'delete'
  })
}
